package com.bizihang.router.service;

import com.bizihang.router.service.impl.UserServiceFallback;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 毕子航 951755883@qq.com
 * @date 2018/06/22
 */
@FeignClient(name = "user", fallback = UserServiceFallback.class)
public interface UserService {

	/**
	 * 根据用户id查询用户
	 *
	 * @param userId
	 * @return
	 */
	@GetMapping(value = "/users/{userId}")
	Object get(@PathVariable("userId") String userId);
}
